package com.basicpro.common.exception;

import com.basicpro.common.model.response.ResultCode;

/**
 * @Description  ：自定义异常类型
 * @author       : molin
 * @date         : 2020/6/13 23:52
 */
public class CustomException extends RuntimeException {

    //错误代码
    ResultCode resultCode;

    public CustomException(ResultCode resultCode){
        this.resultCode = resultCode;
    }
    public ResultCode getResultCode(){
        return resultCode;
    }


}
